#include <iostream>
using namespace std;
class Animal
{
public:
    virtual void runing() = 0;
};
// 纯虚函数也可以有实现
void Animal::runing()
{
    cout << "Animal is runing " << endl;
}
class People : public Animal
{
public:
    int height;
    People(int height) : height{height} {}
    void runing() override
    {
        // 调用抽象类的抽象方法
        Animal::runing();
        cout << "People is runing" << endl;
    }
};

int main()
{
    People *q = new People(20);
    q->runing();
    delete q;
    return 0;
}
